package com.hzy.ums.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 会员登录记录业务对象 ums_member_logininfor
 *
 * @author zengxin
 * @date 2023-10-19
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class MemberLogininforBo extends BaseEntity {

    /**
     * ID
     */
    @NotNull(message = "ID不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 会员手机号
     */
    @NotBlank(message = "会员手机号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String phone;

    /**
     * 会员id
     */
    @NotNull(message = "会员id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long memberId;

    /**
     * 登录IP地址
     */
    @NotBlank(message = "登录IP地址不能为空", groups = { AddGroup.class, EditGroup.class })
    private String ipaddr;

    /**
     * 登录地点
     */
    @NotBlank(message = "登录地点不能为空", groups = { AddGroup.class, EditGroup.class })
    private String loginLocation;

    /**
     * 浏览器类型
     */
    @NotBlank(message = "浏览器类型不能为空", groups = { AddGroup.class, EditGroup.class })
    private String browser;

    /**
     * 操作系统
     */
    @NotBlank(message = "操作系统不能为空", groups = { AddGroup.class, EditGroup.class })
    private String os;

    /**
     * 登陆时间
     */
    @NotNull(message = "登陆时间不能为空", groups = { AddGroup.class, EditGroup.class })
    private Date loginTime;


}
